import type { HouseItem } from '@/types/HouseItem'
import { http } from '@/utils/http'
export const getHouseAPI = (search: String = '') => {
  return http<HouseItem[]>({
    method: 'GET',
    url: `/house/listforuniapp?search=${search}`,
  })
}
export const getHousebyIdAPI = (id: number) => {
  return http<HouseItem>({
    method: 'GET',
    url: `/house/get/${id}`,
  })
}
